package com.wanxi.fileandio.file;

import java.io.File;

public class FileTest3 {
    public static void main(String[] args) {
        File file1 = new File("test1.txt");
        System.out.println(file1.getAbsolutePath());
        System.out.println(file1.getAbsoluteFile());
        System.out.println(file1.getAbsoluteFile().getParent());

        File file2 = new File(file1.getAbsoluteFile().getParent(),"test2.txt");
        System.out.println(file2.getAbsolutePath());
    }
}
